import { defHttp } from '/@/common/util/axios';

enum Api {
  list = '/emp/hubTeamResultEvaluate/getPage',
  list1 = '/emp/hubTeamEvaluateIndex/getPage',
  header = '/emp/dynamicTable/getResultEvaluateHeader', //动态表头
  getTemplateConfigHeader = '/emp/dynamicTable/getTemplateConfigHeader', // 获取动态表头
  deleteOne = '/emp/hubTeamResultEvaluate/delete', // 删除
  init = '/emp/hubTeamResultEvaluate/initResultEvaluate', // 初始化

  batchUpdate = '/emp/hubTeamResultEvaluate/updateBatch', //批量新增
}

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });
export const list1 = (params) => defHttp.get({ url: Api.list1, params });
export const updateList = (params) => defHttp.post({ url: Api.batchUpdate, params });


/**
 * description: 查询动态表头
 * @params: @
 */
export const getColumn = (params) => defHttp.post({ url: Api.header, params });

// 获取详情动态表头
export const getTemplateConfigHeader = (params) => defHttp.post({ url: Api.getTemplateConfigHeader, params });

export const deleteOne = (params) => defHttp.delete({ url: Api.deleteOne, params }, { joinParamsToUrl: true });

export const init = (params) => defHttp.post({ url: Api.init, params });

